package com.zkingsoft.web.dao;

import com.matrix.core.pojo.PaginationVO;
import com.zkingsoft.web.bean.WebTemplate;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @description 网页模板
 * @author 姜友瑶
 * @date 2018-12-26 18:59
 */
public interface WebTemplateDao{

	public int insert(@Param("item") WebTemplate webTemplate);
   	
   	public int batchInsert(@Param("list") List<WebTemplate> webTemplateList);
   	
	public int updateByMap(Map<String, Object> modifyMap);
	
	public int updateByModel(@Param("record") WebTemplate webTemplate);
	
	public int deleteByIds(@Param("list") List<String> list);
	
	public int deleteById(String id);

	public int deleteByModel(@Param("record") WebTemplate webTemplate);
	
	public List<WebTemplate> selectInPage(@Param("record") WebTemplate webTemplate, @Param("pageVo") PaginationVO pageVo);

	public List<WebTemplate> selectByModel(@Param("record") WebTemplate webTemplate);
	
	public int selectTotalRecord(@Param("record") WebTemplate webTemplate);
	
	public WebTemplate  selectById(String id);
	
	public WebTemplate  selectForUpdate(String id);
	
}